/*
* @Author: dyiwen
* @Date:   2020-09-17 17:08:47
* @Last Modified by:   dyiwen
* @Last Modified time: 2020-09-21 17:18:52
 */
package main

type Config struct {
	Url       string
	User      string
	Password  string
	Prefix    string
	Port      uint64
	Namespace map[string]struct{}
}

type Table struct {
	Id             int
	Dataid         string
	Group          string
	Totall         string
	PageNumber     string
	PagesAvailable string
}

type NsTable struct {
	Id          int
	NamespaceId string
	Namespace   string
	ConfigCount float64
	Capacity    string
}

type NamespaceBox struct {
	Code    int             `json:code`
	Message string          `json:message`
	Data    []NamespaceData `json:data`
}

type NamespaceData struct {
	Namespace         string  `json:namespace`
	NamespaceShowName string  `json:namespaceShowName`
	Quota             float64 `json:quota`
	ConfigCount       float64 `json:configCount`
	Type              int     `json:type`
}

var (
	page      int    = 1
	pagesize  int    = 20
	mode      string = "accurate"
	dataid    string = ""
	group     string = "DEFAULT_GROUP"
	nsbox     NamespaceBox
	conf      Config
	path      string = ".nacosctl.json"
	prefix    string = "/nacos"
	homedir   string = "/.nacos/"
	port      uint64 = 80
	user      string
	password  string
	namespace string
	logdir    string
	cachedir  string
)
